package ccpv;

import java.util.ArrayList;

public class ParameterList extends ArrayList<Parameter> {
	/**
	 * Serial Version UID
	 */
	private static final long serialVersionUID = 1L;
	private String name;

	public ParameterList(String name) {
		this.setName(name);
	}
	
	public String getName() {
		return name;
	}

	/**
	 * @param name the name to set
	 */
	public void setName(String name) {
		this.name = name;
	}
	
	public boolean addUnique(Parameter param) {
		if (this.contains(param)) {
			return false;
		} else {
			this.add(param);
			return true;
		}
		
	}
	
	public boolean setNamesValue(String name, double value) {
		// TODO
		return false;
	}
	
}
